// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  modules: [
    '@bg-dev/nuxt-naiveui',
    '@nuxt/image',
    '@unocss/nuxt',
    'nuxt-svgo',
    'nuxt-icon',
    '@pinia/nuxt',
  ],
  runtimeConfig: {
    public: {
      appApi: import.meta.env.VITE_APP_API,
    },
  },
  css: ['~/assets/css/main.css'],
  app: {
    baseURL: '/',
  },
  nitro: {
    devProxy: {
      '/api': {
        target: 'http://192.168.50.22:3000',
        changeOrigin: true,
      },
    },
  },
})
